package com.cstp.web.req;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author watts
 */
@Data
@Schema(description = "问题")
public class QuestionReq {
    private Long id;
    @Schema(description = "内容")
    private String title;
    @Schema(description = "类型 1单选 2判断 3 多选")
    private int type;
    @NotEmpty
    @Valid
    @Schema(description = "问题选项")
    private List<QuestionOptionReq> options;
}
